package com.micro.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import java.time.LocalDateTime;

@TableName("消息")
public class Message {
    @TableId(value = "消息ID", type = IdType.AUTO)
    private Long messageId;

    @TableField("用户ID")
    private Long userId;

    @TableField("消息类型")
    private Integer messageType; // 0-火车票, 1-火车餐, 2-酒店

    @TableField("行为类型")
    private String actionType;   // 购票成功、取消订购等

    @TableField("消息内容")
    private String content;      // 消息内容

    @TableField("创建时间")
    private LocalDateTime createTime;

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public String getActionType() {
        return actionType;
    }

    public void setActionType(String actionType) {
        this.actionType = actionType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
